import os

# 获取当前目录所有文件
os.listdir(os.getcwd())
list1 = os.listdir()
for name in list1:
    if name.startswith('python_'):
        num = len('python_')
        new_name = name[num:]

    else:
        new_name = 'python_' + name
    os.rename(name, new_name)
